export function updateControlPosition() {
  const volumeControl = document.getElementById('chrome-volume-control');
  if (!volumeControl) return;

  const viewportWidth = window.innerWidth || document.documentElement.clientWidth;
  const viewportHeight = window.innerHeight || document.documentElement.clientHeight;

  const right = 20;
  const bottom = 20;

  volumeControl.style.right = `${right}px`;
  volumeControl.style.bottom = `${bottom}px`;
  volumeControl.style.left = 'auto';
  volumeControl.style.top = 'auto';
}